---
layout: "default"
title: "zip"
description: "Swift documentation for 'zip': A sequence of pairs built out of two underlying sequences, where."
keywords: "zip,func,swift,documentation"
root: "/v1.2"
---

<div class="declaration" id="func-zip-s0_-sequencetype-s1_-sequencetype_-s0-s1_-s1">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-zip-s0_-sequencetype-s1_-sequencetype_-s0-s1_-s1">func <wbr>zip&lt;S0 :<wbr> SequenceType, S1 : SequenceType&gt;(<wbr>_:<wbr> S0, s1: S1)</a>
        
<div class="comment collapse" id="comment-func-zip-s0_-sequencetype-s1_-sequencetype_-s0-s1_-s1"><div class="p">
    <p>A sequence of pairs built out of two underlying sequences, where
the elements of the <code>i</code>th pair are the <code>i</code>th elements of each
underlying sequence.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func zip&lt;S0 : SequenceType, S1 : SequenceType&gt;(s0: S0, s1: S1) -&gt; Zip2&lt;S0, S1&gt;</code>
    
    
</div></div>
</div>
